﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassLibrary.Entity;
using ClassLibrary.Data;
using System.Data;

namespace ClassLibrary.DAO
{
    public class TblFaultListDAO
    {
        DBService _db = null;
        public TblFaultListDAO(string ConnectionString)
        {
            _db = new DBService(ConnectionString);
        }
        public DataTable GetFaultList()
        {
            DataTable dt = null;
            try
            {
                dt = _db.ExeSP_DataTable("select * from TblFaultList", false, CommandType.Text);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return dt;
        }
    }
}
